/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.cardarus.operatingsystem.struts.forms;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 *
 * @author nobal
 */
public class UsePointsActionForm extends org.apache.struts.action.ActionForm {

    public UsePointsActionForm(){
        super();
    }
    /**
     * Used in forms to store points
     */
    private String points;

    /**
     * Used in business logics
     */
    private int userPoints;

    public String getPoints() {
        return points;
    }

    public void setPoints(String points) {
        this.points = points;
        this.userPoints=Integer.parseInt(points);
    }

    public int getUserPoints() {
        return userPoints;
    }

    public void setUserPoints(int userPoints) {
        this.userPoints = userPoints;
    }  
}
